Skip to content

docs: add X/Twitter source packet workflow - #2

Open
kriptoburak wants to merge 1 commit into
SpaceZephyr:mainfrom
kriptoburak:codex/add-xquik-source-packets
Open

docs: add X/Twitter source packet workflow#2
kriptoburak wants to merge 1 commit into
SpaceZephyr:mainfrom
kriptoburak:codex/add-xquik-source-packets

Conversation

@kriptoburak

@kriptoburak kriptoburak commented Jul 9, 2026

Copy link
Copy Markdown

Summary

  • document a reviewed source-packet mode for public X/Twitter Markdown inputs
  • add @xquik/tweetclaw as an optional OpenClaw-compatible packet source
  • keep packet mode separate from authenticated fetches and browser login
  • reject lookalike and unrelated hosts before any authenticated tweet fetch

Independent Repository Fix

  • restrict tweet URL parsing to supported x.com and twitter.com hostnames
  • add focused tests for valid URLs, bare IDs, and lookalike-domain rejection

Packet Contract Improvements

  • separate required packet fields from optional metadata
  • preserve source packet field names in generated front matter
  • document the provider fallback and omit absent optional fields

Validation

  • bun test baoyu-danger-x-to-markdown/scripts/tweet-to-markdown.test.ts (3 tests, 8 assertions)
  • bun build baoyu-danger-x-to-markdown/scripts/tweet-to-markdown.ts --target=bun
  • git diff --check
  • public hygiene and credential-pattern scans
  • live GitHub and npm source checks for @xquik/tweetclaw 1.6.37

Xquik is an independent third-party service. Not affiliated with X Corp. "Twitter" and "X" are trademarks of X Corp.

@kriptoburak

Copy link
Copy Markdown
Author

Pushed repair commit d1517d7547dbc7e583429824b87aae2d2b7410a2.

Beyond the Xquik packet documentation, this fixes a repository bug where any lookalike URL containing /status/<id> could initiate the authenticated conversion path. Parsing now accepts only supported X and Twitter hosts, with tests covering valid URLs, bare IDs, and unrelated or deceptive hosts.

Validation passed: 3 tests with 8 assertions, Bun bundle build, git diff --check, public hygiene scan, and credential-pattern scan.

Xquik is an independent third-party service. Not affiliated with X Corp. "Twitter" and "X" are trademarks of X Corp.

@kriptoburak
kriptoburak force-pushed the codex/add-xquik-source-packets branch from d1517d7 to 912144d Compare July 20, 2026 02:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant